import { createApp } from 'vue'
import App from './App.vue'
import router from "@/router";
import store from "@/store"
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import "@/assets/css/common.css"

import directives from "@/directive/auth.js";

const app = createApp(App)

// 安装所有的自定义指令
for(let key in directives ){
    console.log(key)
    app.directive(key,directives[key]);
}

app.use(router).use(store).use(ElementPlus)

app.mount('#app')